package org.spring.springboot.service;

import java.util.List;

import org.spring.springboot.domain.Equipment;

/**
 * 城市业务逻辑接口类
 *
 * Created by bysocket on 07/02/2017.
 */
public interface EquipmentService {
	/**
	 * 显示数据库中所有的设备信息
	 * @return
	 */
	List<Equipment> findAllEquipment();
    /**
     * 根据设备id，查询设备信息
     * @param cityName
     */
    Equipment findEquipmentById(int id);
    /**
     * 将设备信息存入数据库
     * @param equipment
     * @return
     */
    Long saveEquipment(Equipment equipment);
    /**
     * 设备信息的更新
     * @param equipment
     * @return
     */
    void updateEquipment(Equipment equipment);
    /**
     * 根据id删除设备信息
     * @param id
     * @return
     */
     void deleteEquipmentById(int id);
    
}
